﻿using System;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;

namespace HamcoWcs.DAL.Migrations
{
    public partial class A33 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "bcr_read_info",
                columns: table => new
                {
                    Id = table.Column<long>(type: "bigint", nullable: false, comment: "主键Id")
                        .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
                    BcrName = table.Column<string>(type: "varchar(30)", maxLength: 30, nullable: false, comment: "Bcr名称")
                        .Annotation("MySql:CharSet", "utf8mb4"),
                    RQty = table.Column<int>(type: "int", nullable: false, defaultValue: 0, comment: "读取次数"),
                    FQty = table.Column<int>(type: "int", nullable: false, defaultValue: 0, comment: "异常次数"),
                    SetTime = table.Column<DateTime>(type: "datetime(6)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_bcr_read_info", x => x.Id);
                },
                comment: "读码率信息")
                .Annotation("MySql:CharSet", "utf8mb4");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "bcr_read_info");
        }
    }
}
